@extends('admin.master')

@section('top')
	<span class="top-title pull-left">修改密码</span>
@endsection

@section('content')
	{!! Form::model($user, ['url' => 'admin/user/password-modify', 'class'=>'form-horizontal']) !!}
		{!! Form::hidden('id', null) !!}
		<table class="table table-form">
			<tbody>
				<tr>
					<th width="100"><span class="control-label">用户名</span></th>
					<td><p class="form-control-static">{{ $user->username }}</p></td>
				</tr>
				<tr>
					<th><span class="control-label">原始密码</span></th>
					<td>{!! Form::password('old_password', ['class'=>'form-control len']) !!}</td>
				</tr>
				<tr>
					<th><span class="control-label">新密码</span></th>
					<td>{!! Form::password('password', ['class'=>'form-control len']) !!}</td>
				</tr>
				<tr>
					<th><span class="control-label">确认密码</span></th>
					<td>{!! Form::password('password_confirmation', ['class'=>'form-control len']) !!}</td>
				</tr>
				<tr>
					<td></td>
					<td>{!! Form::submit('提交', ['class'=>'btn btn-primary']) !!}</td>
				</tr>
			</tbody>
		</table>
	{!! Form::close() !!}
@endsection